#!/usr/bin/env python3
# Licensing : see licensing directory

def fend(*var):
    """A polite way to end a phase."""
    t = input ("\tIs it all ok ? (y/n) ")
    while (1):
        if (t == 'n'):
            exit (1)
        elif (t == 'y'):
            return var
        else:
            t = input ("\tError: Bad answer\n\tIs it all ok ? (y/n) ")
